using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyData : CharacterData
{
    private Enemy enemy;


    protected override void Start()
    {
        base.Start();
        enemy = GetComponent<Enemy>();
    }

    public override void TakeDamage(int damage,bool isCrit = false)
    {
        base.TakeDamage(damage,isCrit);
    }

    protected override void Die()
    {
        base.Die();
        myDrop?.GenerateDrop();
        enemy.Die();
        Destroy(gameObject, 5f);
        
    }

}
